package core;

import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;

import util.NBGStrParser;

//Detailed information for each object
//for query processing last step
//hold moid => <detailed information> 
public class MovingObjectHolder {
	HashMap<Integer, MovingObject> hm;

	public MovingObjectHolder() {
		hm = new HashMap<Integer, MovingObject>();
	}

	public void insertMO(MovingObject mo) {
		hm.put(mo.id, mo);

		// NBGStrParser parser = new NBGStrParser(str);
		// int oid = parser.getOid();
		// List<String> ls = hm.get(oid);
		// if (ls == null) {
		// List<String> templs = new LinkedList<String>();
		// templs.add(str);
		// hm.put(oid, templs);
		//
		// } else {
		// ls.add(str);
		// }
	}

	public MovingObject getById(int id) {
		return hm.get(id);
	}

}
